addInvisibleAction

Add an invisible action to this notification. Invisible actions are never displayed by the system, but can be retrieved and used by other application listening to system notifications. Invisible actions are supported from Android 4.4.4 (API 20) and can be retrieved using getInvisibleActions.

Parameters

icon

Resource ID of a drawable that represents the action.

title

Text describing the action.

intent

android.app.PendingIntent to be fired when the action is invoked.


Add an invisible action to this notification. Invisible actions are never displayed by the system, but can be retrieved and used by other application listening to system notifications. Invisible actions are supported from Android 4.4.4 (API 20) and can be retrieved using getInvisibleActions.

Parameters

action

The action to add.